package com.android.webttest.Application;

import android.app.Application;

import com.android.webttest.Adapter.VideoBindingAdapters;
import com.android.webttest.Config.AppDatabase;

import lombok.Getter;

public class MyApplication extends Application {
    @Getter
    private static AppDatabase database;

    static {
        // 强制加载 BindingAdapter，防止未注册
        System.out.println("BindingAdapter loaded: " + VideoBindingAdapters.class.getName());
    }
    @Override
    public void onCreate() {
        super.onCreate();
        database = AppDatabase.getInstance(this);
    }

}